package exercise7;
import java.util.Scanner;
public class DecimalToBinary extends BaseExample {
	public String convertDecimalToBinary(int value) {
		String result = Integer.toBinaryString(value);
        this.logger.debug("输出二进制：");
        return result;
	}
	public void print() {
		@SuppressWarnings("resource")
		Scanner in=new Scanner(System.in);
		this.logger.debug("请输入十进制的数值");
		int a=in.nextInt();
		this.logger.debug(convertDecimalToBinary(a));
	}
}
